package com.imagine.entity;

import org.springframework.stereotype.Component;

/**
 * Created by liangyue on 2017/10/2.
 */
//用来记录用户的持仓股票
    @Component
public class AccountStock {
    private String cAccountId;
    private String stockCode;
    private int stockNum;
    private int usableNum;
    private int count;

    public AccountStock() {}

    public AccountStock(String cAccountId,  String stockCode) {
        this.cAccountId = cAccountId;
        this.stockCode = stockCode;
    }

    public AccountStock(String cAccountId, String stockCode, int stockNum, int usableNum) {
        this.cAccountId = cAccountId;
        this.stockCode = stockCode;
        this.stockNum = stockNum;
        this.usableNum = usableNum;
    }

    public int getUsableNum() {
        return usableNum;
    }

    public void setUsableNum(int usableNum) {
        this.usableNum = usableNum;
    }

    public String getcAccountId() {
        return cAccountId;
    }

    public void setcAccountId(String cAccountId) {
        this.cAccountId = cAccountId;
    }

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public int getStockNum() {
        return stockNum;
    }

    public void setStockNum(int stockNum) {
        this.stockNum = stockNum;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "AccountStock{" +
                "cAccountId='" + cAccountId + '\'' +
                ", stockCode='" + stockCode + '\'' +
                ", stockNum=" + stockNum +
                ", usableNum=" + usableNum +
                ", count=" + count +
                '}';
    }
}

